import '../base/request.dart';

class CategoryRequest extends BaseRequest {
  CategoryRequest(String detail, int pageIndex, int pageSize) {
    this.detail = detail;
    this
      ..setHeader('fa', 'course-flag')
      ..setHeader('ZmEtMjAyMS0wNC0xMiAyMToyMjoyMC1mYQ==fa', 'auth-token')
      ..setQueryParams(pageIndex, 'pageIndex')
      ..setQueryParams(pageSize, 'pageSize');
  }

  String detail; // 详细查询路径

  @override
  bool get isHttps => true;

  @override
  SupportMethods get method => SupportMethods.GET;

  @override
  bool get needLogin => true;

  @override
  String get path => 'home/$detail';

  @override
  String get route => 'uapi/fa';
}
